package com.rainsoft.center.isec.frame.start;

import com.rainsoft.center.isec.frame.entity.AppConfig;
import com.rainsoft.center.isec.frame.record.ARecordDataJob;
import com.rainsoft.center.isec.frame.record.impl.VidRecordImpl;
import com.rainsoft.center.isec.stream.library.entity.hbase.impl.VidLoginout;

/**
 * @Name com.rainsoft.center.isec.frame.start.Main
 * @Description
 * @Author Elwyn
 * @Version 2017/12/8
 * @Copyright 上海云辰信息科技有限公司
 **/
public class Main {
    public static void main(String[] args) throws ClassNotFoundException {

        if (args.length == 0) {
            throw new RuntimeException("必须指定任务类");
        }
        //先去找xml配置文件，拿到args[]对应的job类和duration
        AppConfig appConfig = AppConfig.getAppConfig(args[0]);
        PrepareSpark prepareBootstrap = new PrepareSpark(appConfig);
        ARecordDataJob recordData = new VidRecordImpl(VidLoginout.class, prepareBootstrap);


    }
}
